package com.flickx.po;

import com.fasterxml.jackson.annotation.JsonIgnore;

import javax.persistence.*;

/**
 * @author flick on 2017/5/8.
 * @version 1.0
 */
@Entity
public class Goods extends AbstractEntity {
    private String name;
    private Float price;
    @JsonIgnore
    @ManyToOne(cascade= CascadeType.ALL,fetch= FetchType.LAZY)
    private Shop shop;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Float getPrice() {
        return price;
    }

    public void setPrice(Float price) {
        this.price = price;
    }

    public Shop getShop() {
        return shop;
    }

    public void setShop(Shop shop) {
        this.shop = shop;
    }
}
